#define _CRT_SECURE_NO_WARNINGS 1

#include"string.h"

void test1()
{
	zjx::string s1("hello world!");
	s1.push_back('x');
	cout << s1.c_str() << endl;

	s1.append("1111111111111");
	cout << s1.c_str() << endl;

	//s1.resize(50, '2');
	//s1.resize(5, '1');
	////cout << s1.c_str() << endl;
	//for (int i = 0 ;i<s1.size();i++)
	//{
	//	cout << s1[i] << " ";
	//}
	//cout << endl;

	//s1.insert(6, 1 ,'?');
	//cout << s1.c_str() << endl;

	//s1.insert(0, "1111111111111111111");
	//cout << s1.c_str() << endl;

	s1.erase(6);
	//cout << s1.c_str() << endl;
	cout << s1 << endl;

	cin >> s1;
	cout << s1 << endl;


}

int main()
{
	test1();
	return 0;
}